package com.example.handler;

import com.example.feignApi.ProductFeignApiWithSentinel;
import com.example.mall.Product;
import org.springframework.stereotype.Component;

/**
 * @ClassName ProductCenterFeignApiWithSentinelFallback
 * @Description TODO
 * @Author: XMK
 * @Date: 2020/4/29 18:47
 * @Version: 1.0
 */
@Component
public class ProductCenterFeignApiWithSentinelFallback implements ProductFeignApiWithSentinel {
    @Override
    public Product selectProductByOrderId(String orderId) {
        Product product = new Product();
        product.setProductName("默认产品");
        product.setId(0L);
        return product;
    }
}
